<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<script type="text/javascript">
	$(document).ready(function() {
		$("#mytable").dataTable();

	});
</script>

<div id="content-outer">
	<!-- start content -->
	<div id="content">

		<!--  start page-heading -->
		<div id="page-heading">
			<h1>Customer Management</h1>
		</div>
		<table border="0" width="100%" cellpadding="0" cellspacing="0"
			id="content-table">
			<tr>
				<th rowspan="3" class="sized"><img
					src="images/shared/side_shadowleft.jpg" width="20" height="300"
					alt="" /></th>
				<th class="topleft"></th>
				<td id="tbl-border-top">&nbsp;</td>
				<th class="topright"></th>
				<th rowspan="3" class="sized"><img
					src="images/shared/side_shadowright.jpg" width="20" height="300"
					alt="" /></th>
			</tr>
			<tr>
				<td id="tbl-border-left"></td>
				<td>
					<div id="content-table-inner">
						<div id="page-heading">
							<h1>Add Customer Information</h1>
						</div>
						<div id="content-table-inner" style="padding-left: 35px;">
							<table border="0" width="100%" cellpadding="0" cellspacing="0">
								<tr valign="top">
									<td>
										<form action="createCustomer" method="post">
											<table border="0" cellpadding="0" cellspacing="0"
												id="id-form">
												<tr>
													<th valign="top">Login id:</th>
													<td><input type="text" class="inp-form"
														name="loginId" /></td>
												</tr>
												<tr>
													<th valign="top">Password:</th>
													<td><input type="text" class="inp-form"
														name="password" /></td>
													<td></td>
												</tr>
												<tr>
													<th valign="top">First name:</th>
													<td><input type="text" class="inp-form"
														name="firstName" /></td>
													<td></td>
												</tr>
												<tr>
													<th valign="top">Last name:</th>
													<td><input type="text" class="inp-form"
														name="lastName" /></td>
													<td></td>
												</tr>
												<tr>
													<th valign="top">Address:</th>
													<td><input type="text" class="inp-form"
														name="address" /></td>
													<td></td>
												</tr>
												<tr>
													<th valign="top">Phone:</th>
													<td><input type="text" class="inp-form"
														name="phone" /></td>
													<td></td>
												</tr>
												<tr>
													<td></td>
													<td><input type="submit" class="btnAdd" value="Save"
														id="addCustomer" /></td>
													<td><input type="submit" class="btnAdd" value="Save"
														id="addCustomer" /></td>
													<td></td>
												</tr>
											</table>
										</form>
									</td>
								</tr>
							</table>
							<table id="mytable">
								<thead>
									<tr>
										<th>Customer loginID</th>
										<th>Customer password</th>
										<th>Customer first name</th>
										<th>Customer last name</th>
										<th>Customer address</th>
										<th>Customer phone</th>
									</tr>
								</thead>
								<tbody>
									<c:forEach var="customer" items="${listCustomer}">
										<tr>
											<td>${customer.loginId}</td>
											<td>${customer.password}</td>
											<td>${customer.firstName}</td>
											<td>${customer.lastName}</td>
											<td>${customer.address}</td>
											<td>${customer.phone}</td>
										</tr>
									</c:forEach>
								</tbody>
							</table>
						</div>
				</td>
				<td id="tbl-border-right"></td>
			</tr>
			<tr>
				<th class="sized bottomleft"></th>
				<td id="tbl-border-bottom">&nbsp;</td>
				<th class="sized bottomright"></th>
			</tr>
		</table>
		<br />
	</div>
	<div class="clear">&nbsp;</div>
</div>